package com.cg.service;

import com.cg.dto.AddLikeDTO;
import com.cg.dto.AddWorkDTO;
import com.cg.dto.SearchWorkDTO;
import com.cg.dto.UpdateWorkDTO;
import com.cg.entity.Work;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cg.result.R;

import java.util.List;

/**
 * <p>
 * 作品 服务类
 * </p>
 *
 * @author 加
 * @since 2025-01-17
 */
public interface IWorkService extends IService<Work> {

    R<List<Work>> getWorkByCondition(SearchWorkDTO searchWorkDTO);

    R addLike(AddLikeDTO addLikeDTO);

    String selectContentById(Long workId);

    R addWork(AddWorkDTO addWorkDTO);

    R updateWork(UpdateWorkDTO updateWorkDTO);

    Work selectWorkById(Long workId);

    R deleteWork(Long workId);

    List<Work> selectWorkByName(String workName);
}
